package com.linktrip.devicemanager.dao;

import java.util.List;

public interface IBaseDao<T> {
	//获取所有
	public List<T> getList();
	
	public boolean batchSave(List<T> list);
	//新增
	public boolean add(T entity);
	//更新
	public boolean update(T entity);
	//获取ID获取单条
	public T getEntityById(int id);
	//获取device_no获取单条
	public T getEntityByNo(String id);
	//删除
	public boolean remove(T entity);
	
	public List<T> paging(int page,int size);
}
